<%@page import="java.util.ArrayList"%>
<%@page import="java.util.Collections"%>
<%@page import="javax.cache.CacheException"%>
<%@page import="javax.cache.CacheManager"%>
<%@page import="javax.cache.Cache"%>
<%
String ip = (String) request.getAttribute("ip");
String title = "All about site";
String description = "Find information domain,lookup ip,lookup whois,network tool,check pr with moodify.info.";
String keyword = "domain,ip,whois,network tool";

Cache cache=null;
try {
    cache = CacheManager.getInstance().getCacheFactory().createCache(Collections.emptyMap());
} catch (CacheException e) {
   e.printStackTrace();
   
}
ArrayList<String> siteview = null;
if(cache.containsKey("view"))
{
	siteview = (ArrayList<String>) cache.get("view");
}
ArrayList<String> siteupdate = null;
if(cache.containsKey("update"))
{
	siteupdate = (ArrayList<String>) cache.get("update");
}
%>
<jsp:include page="layout/header.jsp">
	<jsp:param name="title" value="<%=title %>"/>
	<jsp:param name="description" value="<%=description %>"/>
	<jsp:param name="keywords" value="<%=keyword %>"/>
	<jsp:param name="menu" value="co"/>
</jsp:include>
<script type="text/javascript" src="http://ip-geo.appspot.com/geo_data.js"></script>

	<div id="content" class="index">
		
			<div class='search'>
				<form action="/search" method="get">
					<input class="input" type="text" name="name" onclick="javascript:if(this.value=='Search the site here...')this.value=''" value="Search the site here...">
					<button type="submit">Search</button>
				</form>
				<div class="clear"></div>
				<div class="addthis clear_div">
				<!-- AddThis Button BEGIN -->				
					<div class="addthis_toolbox addthis_default_style ">
					<a class="addthis_button_facebook_like" fb:like:layout="button_count"></a>
					<a class="addthis_button_tweet" tw:via="moodify_site"></a>
				
					<a class="addthis_button_google_plusone" g:plusone:size="medium"></a>
					<a class="addthis_counter addthis_pill_style"></a>
					</div>
				                <script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=ra-4d6f3cdb1d190d60"></script>
				                <!-- AddThis Button END -->
				</div>
			</div>
		
		<div id="section">
			<div>
				<h1>Ip <%=ip %></h1>
				<p>
					Our visitors need to know their IP address for many reasons including gaming, tech support, remote desktop connection, proxy detection, anonymity, to see if their address has changed, or if they're running their own email server. If you need to run your own email server or web server, it would be best to have a static IP address.
					<br/><br/><strong>How to lookup an ip address?</strong>
				</p>
				<span>
					<a class="first" href="/ip-lookup">Lookup Ip</a>
					<a href="/ip-address">Ip address?</a>
				</span>
			</div>
			<div id="figure">
				<script type='text/javascript'>
					document.write(geo.generate_map(607, 305));
					
				</script>
				<span></span>
			</div>
			<span class="background"></span>
		</div>
		<div id="featured">
			<ul>
				<li class="first">
					<a href="/network" rel="nofollow"><img src="/images/map-in-grass.jpg" alt="network tool" /></a>
					<span></span>
					<p>Free online network tools, including traceroute, nslookup, dig, whois, ping, and our own Domain Dossier. Works with IPv6. Some source code included.</p>
					<a class="link" href="/network">Network tool</a>
				</li>
				<li>
					<a href="/pagerank" rel="nofollow"><img src="images/little-girl-hugging-the-globe.jpg" alt="google pagerank" /></a>
					<span></span>
					<p>Page Rank Checker is a completely free service to check Google pagerank instantly using our online page rank check tool or a small pagerank button.</p>
					<a class="link" href="/pagerank">Check PR</a>
				</li>
				<li>
					<a href="/whois" rel="nofollow"><img src="images/pointing-area-in-globe.jpg" alt="whois" /></a>
					<span></span>
					<p>Once your listing appears in this online directory, it is publicly available to anyone who chooses to check domain names using the WHOIS search tool.</p>
					<a class="link" href="/whois">Whois</a>
				</li>
			</ul>
		</div>
		<div>
			<br/> 
			<%
			if(siteview!=null)
			{
			%>
				<strong>Recent site view : </strong>
				<%
				for(int i=0;i<siteview.size();i++)
				{
				%>
					<a href="/site/<%=siteview.get(i) %>"><%=siteview.get(i) %></a> , 
				<%
				}
				%>
				<br/><br/>
			<%
			}
			%>
			<%
			if(siteupdate!=null)
			{
			%>
				<strong> Recent site update : </strong>
				<%
				for(int i=0;i<siteupdate.size();i++)
				{
				%>
					<a href="/site/<%=siteupdate.get(i) %>"><%=siteupdate.get(i) %></a> , 
				<%
				}
				%>
				<br/><br/>
			<%
			}
			%>
		</div>
	</div>

 <jsp:include page="layout/footer.jsp"></jsp:include>     	